package com.doubao.notepad_blog_backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubao.notepad_blog_backend.domain.UmsUser;
import com.doubao.notepad_blog_backend.dto.LoginDTO;
import com.doubao.notepad_blog_backend.dto.RegisterDTO;
import com.doubao.notepad_blog_backend.vo.ProfileVO;
import org.springframework.stereotype.Repository;

@Repository
public interface UmsUserMapper extends BaseMapper<UmsUser> {
    UmsUser register(RegisterDTO registerDTO);

    UmsUser getUserByUsername(String username);

    String login(LoginDTO dto);

    ProfileVO getUserProfile(String userId);
}
